package com.xuecheng.content.service;

import com.xuecheng.commons.model.dto.TeachplanDto;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.content.domain.Teachplan;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author HuangYuwu
 * @since 2022-09-11
 */
public interface TeachplanService extends IService<Teachplan> {

    /**
     * 查询课程计划列表-树形结构
     * @param courseId
     * @return
     */
    ResponseResult treeNodes(Long courseId);

    /**
     * 保存或者更新课程计划
     * @param teachplanDto
     * @return
     */
    ResponseResult saveOrUpdateTeachplan(TeachplanDto teachplanDto);

    /**
     * 根据id删除课程计划
     * @param id
     * @return
     */
    ResponseResult deleteTeachplan(Long id);
}
